<?php
@session_start();
if (isset($_SESSION['user'])) {
    ?>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title></title>
        </head>
        <body>
            <div id="header">
                <div>
                    <a href="<?php echo URL_BASE . '/admin/home' ?>" id="logo"><img src="<?php echo URL_BASE ?>/templates/admin/images/logo_1.png"/></a>
                    <div class="navigation">
                        <ul class="first">
                            <li class="first"><a href="jewelry.html">Hỗ trợ</a></li>

                        </ul>
                        <ul>
                            <?php
                            $name = $_SESSION['user']['name'];
                            ?>
                            <li class="detail-login">Xin chào:<a href="User-info"><?php echo $name ?></a><a href="<?php echo URL_BASE ?>/admin/logout">Thoát</a></li>
                        </ul>
                    </div>
                </div>
                <div id="navigation"><!--END #navigation--->
                    <ul>
                        <li class="selected"><a href="<?php echo URL_BASE . '/admin/home' ?>">Trang chủ</a></li>
                        <li><a href="<?php echo URL_BASE . '/admin/product' ?>">Sản phẩm</a></li>
                        <li><a href="<?php echo URL_BASE . '/admin/product/showProductDetail' ?>">Chi tiết sản phẩm</a></li>
                        <li><a href="product.php">Danh mục sản phẩm</a></li>
                        <li><a href="product.php">Hình ảnh</a></li>
                        <li><a href="product.php">Đơn hàng</a></li>
                    </ul>
                </div>
            </div><!---END #header-->
        </body>
    </html>
    <?php
}
?>